var express = require('express');
var router = express.Router();

var dataCtrl = require('../controller/cate.controller');

router.post('/data',dataCtrl.create);
router.get('/data/:id',dataCtrl.get);
router.put('/data/:id',dataCtrl.update);
router.delete('/data/:id',dataCtrl.remove);
router.get('/list/:type',dataCtrl.list);



module.exports = router;


// var express = require('express');
// var router = express.Router();
// var dataCtrl = require('../controllers/cate.controller')

// /* GET home page. */
// router.post('/data',dataCtrl.create);
// router.post('/data/:id',dataCtrl.update);
// router.get('/list',dataCtrl.list);
// router.delete('/data/:id',dataCtrl.remove);


// module.exports = router;
